import { request } from '@/sheep/request';

const route = {
  path: 'supply/outline',
  name: 'shop.admin.supply.outline',
  component: () => import('./index.vue'),
  meta: {
    title: '总览',
  },
};

const api = {
  seller: {
    info: (params) =>
      request({
        url: `/seller/admin/dashboard/total`,
        method: 'GET',
        params,
      }),
    status: (params) =>
      request({
        url: `/seller/admin/dashboard/getShopStatus`,
        method: 'GET',
        params,
      }),
  },
  total: () =>
    request({
      url: '/shop/admin/dashboard/total',
      method: 'GET',
    }),
  ranking: () =>
    request({
      url: '/shop/admin/dashboard/ranking',
      method: 'GET',
    }),
  chart: (params) =>
    request({
      url: '/shop/admin/dashboard/chart',
      method: 'GET',
      params,
    }),
  qrcode:()=>
    request({
      url: '/operations/admin/store/qrCode',
      method: 'GET',
    }),
};

export { route, api };